package com.itheima.day06.myException.test3;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        try {
            Scanner sc = new Scanner(System.in);
            System.out.println("请输入；");
            String s = sc.nextLine();
            int age = Integer.parseInt(s);
            System.out.println("打印" + age);
            System.out.println(888);
            System.out.println(2 / 0);
        } catch (NumberFormatException e) {
            System.out.println("格式化异常");
        } catch (ArithmeticException e) {
            System.out.println("数字运异常");
        } catch (Exception e) {
            System.out.println("牛逼");
        }
        System.out.println(999);
    }
}
